// This file was automatically generated from file.soy.
// Please don't edit this file by hand.


var soy = require('rdoc/templates/soy').soy;


exports.toFileDoc = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('<html><head><title>', opt_data.head, ' - File Documentation</title><link href="styles/common.css" rel="stylesheet" type="text/css" /><link href="styles/file.css" rel="stylesheet" type="text/css" /></head><body><h1 class="f-header">', opt_data.head, '</h1><div class="fileoverview mono">', opt_data.fileoverview, '</div>');
  if (opt_data.typedefs.length > 0) {
    output.append('<div class="typedef-box"><h2 class="type-header typedef">Typedefs</h2>');
    var typedefList13 = opt_data.typedefs;
    var typedefListLen13 = typedefList13.length;
    for (var typedefIndex13 = 0; typedefIndex13 < typedefListLen13; typedefIndex13++) {
      var typedefData13 = typedefList13[typedefIndex13];
      output.append('<div class="name typedef">', typedefData13.name, '</div><div class="type-desc">', typedefData13.desc, '</div>');
    }
    output.append('</div>');
  }
  if (opt_data.interfaces.length > 0) {
    output.append('<div class="interface-box"><h2 class="type-header interface">Interfaces</h2>');
    var interfaceList24 = opt_data.interfaces;
    var interfaceListLen24 = interfaceList24.length;
    for (var interfaceIndex24 = 0; interfaceIndex24 < interfaceListLen24; interfaceIndex24++) {
      var interfaceData24 = interfaceList24[interfaceIndex24];
      output.append('<div class="name interface">', interfaceData24.name, '</div><div class="type-desc">', interfaceData24.desc, '</div>');
    }
    output.append('</div>');
  }
  if (opt_data.classes.length > 0) {
    output.append('<div class="class-box"><h2 class="type-header class">Classes</h2>');
    var classList35 = opt_data.classes;
    var classListLen35 = classList35.length;
    for (var classIndex35 = 0; classIndex35 < classListLen35; classIndex35++) {
      var classData35 = classList35[classIndex35];
      output.append('<div class="mono name class">', classData35.name, '</div><div class="mono type-desc">', classData35.desc, '</div>');
    }
    output.append('</div>');
  }
  if (opt_data.enums.length > 0) {
    output.append('<div class="enum-box"><h2 class="type-header enum">Enums</h2>');
    var enumList46 = opt_data.enums;
    var enumListLen46 = enumList46.length;
    for (var enumIndex46 = 0; enumIndex46 < enumListLen46; enumIndex46++) {
      var enumData46 = enumList46[enumIndex46];
      output.append('<div class="mono name enum">', enumData46.name, '</div><div class="mono type-desc">', enumData46.desc, '</div>');
    }
    output.append('</div>');
  }
  output.append((opt_data.rev) ? '<hr class="footer" /><div class="rev">revision: ' + opt_data.rev + '</div>' : '', '</body></html>');
  return opt_sb ? '' : output.toString();
};


exports.test = function(opt_data, opt_sb) {
  var output = opt_sb || new soy.StringBuilder();
  output.append('Success.');
  return opt_sb ? '' : output.toString();
};
